﻿#include "FITKVolumeMeshingParameter.h"

namespace Interface
{
    void FITKVolumeMeshingParameter::setGlobalMeshSize(double gSize)
    {
        _globalMeshSize = gSize;
    }

    double FITKVolumeMeshingParameter::getGlobalMeshSize()
    {
        return _globalMeshSize;
    }

    void FITKVolumeMeshingParameter::setMaxMeshSize(double size)
    {
        _maxMeshSize = size;
    }

    double FITKVolumeMeshingParameter::getMaxMeshSize()
    {
        return _maxMeshSize;
    }

    void FITKVolumeMeshingParameter::setMinMeshSize(double size)
    {
        _minMeshSize = size;
    }

    double FITKVolumeMeshingParameter::getMinMeshSize()
    {
        return _minMeshSize;
    }

    void FITKVolumeMeshingParameter::setMaxNumberOfThreads(int numberThreads)
    {
        if (numberThreads > 0)  _maxNumberThreads = numberThreads;
    }

    int FITKVolumeMeshingParameter::getMaxNumberOfThreads()
    {
        return _maxNumberThreads;
    }

    bool FITKVolumeMeshingParameter::setElementType(ElementType eleType)
    {
        _eleType = eleType;
        return true;
    }

    FITKVolumeMeshingParameter::ElementType FITKVolumeMeshingParameter::getElementType()
    {
        return _eleType;
    }
}


